package com.haven.webrobotserver.service.impl;

import com.haven.webrobotserver.dao.mybatis.mapper.UserKeywordMapper;
import com.haven.webrobotserver.domain.UserKeyword;
import com.haven.webrobotserver.service.UserKeywordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserKeywordServiceImpl implements UserKeywordService {

    @Autowired(required = false)
    private UserKeywordMapper userKeywordMapper;

    @Override
    public List<UserKeyword> getList(String name, int projectId, String description) {

        List<UserKeyword> list = userKeywordMapper.getList(name,projectId,description);

        return list;
    }

    @Override
    public void insertNewUK(UserKeyword uk) {
        userKeywordMapper.insertNewUK(uk);
    }

    @Override
    public void updateUK(UserKeyword uk) {
        userKeywordMapper.updateUK(uk);
    }

    @Override
    public void deleteOne(int id) {
        userKeywordMapper.deleteOne(id);
    }
}
